/***************************************************************************
 *   Copyright (C) 2008 by Eduardo Gurgel Pinho                            *
 *   edgurgel@gmail.com                                                    *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
***************************************************************************/

#include "color.h"
#include <iostream>

namespace Sirat {

namespace Common {

Color::Color(const double _red,const double _green,const double _blue) :red(_red), green(_green), blue(_blue) 
{ }

Color::Color() : red(0.0) , green(0.0) , blue(0.0) { }

Color::Color(const Color& _color) : red(_color.red) , green(_color.green) , blue(_color.blue) { }

Color::~Color() { }

void Color::show() const { std::cout << "(" << red << "," << green << "," << blue << ")" << std::endl; }

Color& Color::operator=(const Color& _color) {
	red = _color.red;
	blue = _color.blue;
	green = _color.green;
	return *this;
}

}

}
